package cn.aspect.bean;

import cn.aspect.annotation.Desensitization;
import cn.aspect.annotation.SnowflakeId;
import cn.aspect.enums.DESENSITIZATION_TYPE;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class CustomTestBean implements Serializable {
    private static final long serialVersionUID = -7030359412579338462L;

    @SnowflakeId
    private Long id;

    @Desensitization(type = DESENSITIZATION_TYPE.NICK_NAME)
    private String name;

    @Desensitization(type = DESENSITIZATION_TYPE.MOBILE)
    private String mobile;

    @Desensitization(type = DESENSITIZATION_TYPE.ID_CARD)
    private String idCard;

    @Desensitization(type = DESENSITIZATION_TYPE.ADDRESS)
    private String address;

    @Desensitization(type = DESENSITIZATION_TYPE.EMAIL)
    private  String email;
}
